/*
 * Copyright (c) 2006-2020, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2020-09-13     RT-Thread    first version
 */

#include <rtthread.h>

#define DBG_TAG "main"
#define DBG_LVL DBG_LOG
#include <rtdbg.h>
#include "dfs_fs.h"
int main(void)
{
    rt_device_t dev;
    rt_thread_mdelay(2000);
    dev = rt_device_find("sd0");
    if(dev != RT_NULL)
    {
        if(dfs_mount("sd0", "/", "elm", 0, 0) == 0)
            rt_kprintf("sd card mount to / success!\n");
        else
            rt_kprintf("sd card mount to / failed!\n");
    }
    rt_kprintf("main start up.\n");
    while (1)
    {
        rt_thread_mdelay(1000);
    }

    return RT_EOK;
}
